import java.util.GregorianCalendar;


public class ValueSlot {

	private GregorianCalendar date;
	private int occurance;
	
	public ValueSlot(long result)
	{
		GregorianCalendar cal = new GregorianCalendar();
		cal.setTimeInMillis(result);
		date = cal;
		occurance = 1;
	}
	
	public void insert()
	{
		occurance++;
	}
	
	public GregorianCalendar getDate()
	{
		return date;
	}
	
	public int getOccurance()
	{
		return occurance;
	}
	
	public void setDate(long value)
	{
		date.setTimeInMillis(value);
	}
	
	public void setOccurance(int i)
	{
		occurance = i;
	}
}
